package controllers

import "os"

type DownController struct {
	BaseController
}

func fileExist(path string) bool {
	_, err := os.Lstat(path)
	return !os.IsNotExist(err)
}

func (this *DownController) Down() {
	version := this.GetString(":version")
	fileName := this.GetString(":fileName")
	this.Ctx.Output.Download("conf/" + version + "/" + fileName)

}
